package com.fz.us.oa.core.service.com.impl;

import com.fz.us.admin.company.dao.BaseFlowDao;
import com.fz.us.admin.company.entity.User;
import com.fz.us.admin.company.service.impl.BaseFlowServiceImpl;
import com.fz.us.oa.core.dao.com.FriendDao;
import com.fz.us.oa.core.entity.com.Friend;
import com.fz.us.oa.core.service.com.FriendService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by ZhuChunXiao on 2017/7/6.
 */
@Service
public class FriendServiceImpl extends BaseFlowServiceImpl<Friend, String> implements FriendService {
    @Resource
    FriendDao friendDao;

    @Override
    public BaseFlowDao<Friend, String> getBaseFlowDao() {
        return friendDao;
    }

    @Override
    public List<Friend> getFriendList(User own) {
        return friendDao.getFriendList(own);
    }

    @Override
    public Friend getFriend(User own, User friend) {
        return friendDao.getFriend(own,friend);
    }
}
